package com.beikbank.bean.result;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

/**
 * Created by wangzhanjin on 2018/1/16.
 */
@Data
public class ResponseResult {
    protected ResponseHeader header = new ResponseHeader();
    protected Object body = new JSONObject();

    public ResponseResult OK(String re_num){
        header.setRe_code("0000");
        header.setRe_msg("操作成功");
        header.setRe_num(re_num);
        return this;
    }

    public ResponseResult NO(String re_msg){
        header.setRe_code("9999");
        header.setRe_msg(re_msg);
        return this;
    }
}
